﻿using System;
using System.Collections;
using System.Linq;
using System.Text;

namespace SKDB_Matcher.SQL.DataTypeCompareResults
{
    class CAbstractDataTypeCompareResult
    {
        private Hashtable compareResults;

        public CAbstractDataTypeCompareResult()
        {
            this.compareResults = new Hashtable();
        }

        public void AddCompareResult(CSQLDataType.DataType _key, CAbstractCompareResult _compareResult)
        {
            this.compareResults.Add(_key, _compareResult);
        }

        public CAbstractCompareResult getCompareResult(CSQLDataType _key)
        {
            return (CAbstractCompareResult)compareResults[_key.getDataType()];
        }
    }
}
